On 32-bit xen, dom0 crashes when using VT-d to assign devices. It is
caused by setting m2p in clear_mmio_p2m_entry(), because
machine_to_phys_map[] entry for mmio address is not mapped.
Signed-off-by: Weidong Han <weidong.han@intel.com>
}
rc = set_p2m_entry(d, gfn, _mfn(INVALID_MFN), 0);
-#if !defined(__x86_64__)
- /* x86_64 xen does not map mmio entries in machine_to_phys_mapp[] */
- set_gpfn_from_mfn(mfn, INVALID_M2P_ENTRY);
-#endif
-
return rc;
}